<template>
    <div class="order">
        <h3>个人订单组件</h3>
        <p>{{paramsresult}}</p>
    </div>
</template>

<script>
    export default {
        name:'Order',
        data() {
            return {
                id: '',
                name:'',
                price:''
            };
        },
        computed:{
            paramsresult(){
                let { id,name,price } = this.$route.params;
                return `${id}-${name}-${price}`
            }
        }
    }
</script>

<style scoped>
    .order{
        width: 100%;
        height: 100%;
        background-color: rgb(189, 107, 148);
    }
</style>